package milu.dbxml;

import com.sleepycat.dbxml.XmlException;
import com.sleepycat.dbxml.XmlQueryContext;
import com.sleepycat.dbxml.XmlQueryExpression;
import com.sleepycat.dbxml.XmlResults;
import com.sleepycat.dbxml.XmlTransaction;
import com.sleepycat.dbxml.XmlValue;

public interface Preparable {

	void prepare() throws XmlException;

	XmlResults execute(XmlTransaction txn) throws XmlException;

	XmlResults execute(XmlTransaction txn, XmlQueryContext xqc) throws XmlException;

	void setVariable(String name, XmlValue value) throws XmlException;

	void setVariable(String name, XmlResults values) throws XmlException;

	XmlQueryExpression getQueryExpression();
}
